#include<stdio.h>
int main()
{
	int arr[] = { 1,2,3,4,5,6,7,8,9,10 };
	int(*p)[10] = &arr;
	int i = 0;
	int sz = sizeof(arr) / sizeof(arr[0]);
	for (i = 0; i < sz; i++)
	{
		printf("%d ", *(*p + i));
	}


	int* p = arr;
	int i = 0;
	for (i = 0; i < 10; i++)
	{
		printf("%d ", *(p + i));
	}
	void print1(int arr[3][5], int r, int c)
	{
		int i = 0;
		for (i = 0; i < r; i++)
		{
			int j = 0;
			for (j = 0; j < c; j++)
			{
				printf("%d ", arr[i][j]);
			}
			printf("\n");
		}
	}


	void print2(int(*p)[5], int r, int c)
	{	
		int i = 0;
		for (i = 0; i < r; i++)
		{
			int j = 0;
			for (j = 0; j < c; j++)
			{
				printf("%d ", *(*(p + i) + j));

			}
			printf("\n");
		}
	}
	int arr[3][5] = { 1,2,3,4,5,2,3,4,5,6,3,4,5,6,7 };
	print1(arr, 3, 5);
	return 0;
}








